import React, { useState, useEffect } from 'react'

export default function Test(props) {
  return (
    <div>
      test
      <hr />
      <p>{props.c}</p>
      <button
        onClick={() => {
          props.dispatch({ type: 'sub' })
        }}
      >
        -
      </button>
    </div>
  )
}
